package com.cjh.springcloud.service.impl;

import com.cjh.springcloud.dao.EmpMapper;
import com.cjh.springcloud.pojo.Emp;
import com.cjh.springcloud.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author cjh
 * @Date 2020/12/3 17:25
 * @Version 1.0
 */
@Service
public class EmpServiceImpl implements EmpService {

    @Autowired
    private EmpMapper empMapper;

    public Emp queryById(Integer empId) {
        return empMapper.queryById(empId);
    }

    public List<Emp> selectAllEmps() {
        return empMapper.selectAllEmps();
    }
}
